export const tableOption = {
  border: true,
  stripe: true,
  searchMenuSpan: 6,
  searchSpan: 7,
  addBtn: false,
  labelWidth: "200",
  searchSpan: 7,
  viewBtn: true,
  delBtn: false,
  editBtn: false,
  editTitle: '过户',
  align: "center",
  column: [{
    label: "创建时间",
    prop: "update_time",
    editDisplay: false,
    addDisplay: false,
    span: 24
  },{
      label: "域名",
      prop: "domain",
      editDisabled: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入城市名称"
      }]
    },{
      label: "持有人",
      prop: "name",
      editDisabled: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },{
      label: "手机号码",
      prop: "phone",
      editDisplay: false,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
    {
      label: '过户用户',
      prop: 'guohu',
      type: "select",
      span: 24,
      filterable: true,
      dicFlag: true,
      dicUrl: process.env.VUE_APP_BASE_API + "/admin/user/listAll",
      dicFormatter: res => {
        return (res.data || []).map(o => ({
          label: o.name,
          value: o.id
        }));
      },
      props: {
        label: "label",
        value: "value"
      },
      rules: [{
        required: true,
        message: "请输入"
      }],
    },{
      label: "状态",
      prop: "type",
      editDisplay: false,
      span: 24,
      type: "radio",
      dicData: [{
        label: '持有',
        value: 1
      }, {
        label: '交易中',
        value: 2
      }, {
        label: '买入',
        value: 3
      }, {
        label: '卖出',
        value: 4
      }],
      // 1持有2交易3买入4卖出
      rules: [{
        required: true,
        message: "请输入"
      }]
    },{
      label: "注册商",
      prop: "org",
      editDisplay: false,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },{
      label: "邮箱",
      prop: "mail",
      editDisplay: false,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
  ]
};

export const auditOption = {
  border: true,
  stripe: true,
  searchMenuSpan: 6,
  searchSpan: 7,
  addBtn: false,
  labelWidth: "200",
  searchSpan: 7,
  viewBtn: false,
  delBtn: false,
  editBtn: false,
  editTitle: '过户',
  align: "center",
  column: [{
    label: "创建时间",
    prop: "create_time",
    editDisplay: false,
    addDisplay: false,
    span: 24
  },{
      label: "域名",
      prop: "domain",
      editDisabled: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入域名"
      }]
    },{
      label: "持有人",
      prop: "name",
      editDisabled: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },{
      label: "手机号码",
      prop: "phone",
      editDisplay: false,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },{
      label: "注册商",
      prop: "org",
      editDisplay: false,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },{
      label: "邮箱",
      prop: "mail",
      editDisplay: false,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
  ]
};

export const recordOption = {
  border: true,
  stripe: true,
  searchMenuSpan: 6,
  searchSpan: 7,
  addBtn: false,
  labelWidth: "200",
  searchSpan: 7,
  viewBtn: true,
  delBtn: false,
  editBtn: false,
  editTitle: '过户',
  align: "center",
  column: [{
    label: "过户时间",
    prop: "create_time",
    searchSpan: 10,
    search: true,
    searchType: 'datetimerange',
    editDisplay: false,
    addDisplay: false,
    span: 24
  },{
      label: "域名",
      prop: "domain",
      editDisabled: true,
      search: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入城市名称"
      }]
    },{
      label: "原持有人",
      prop: "beforeName",
      editDisabled: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },{
      label: "现持有人",
      prop: "afterName",
      editDisabled: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },{
      label: "手机号码",
      prop: "phone",
      editDisplay: false,
      search: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入"
      }]
    },
  ]
};


